<?php include THEMES_PATH . 'public/before_body2.phtml';?>
<link href="/statics/front/css/group-buying.css" rel="stylesheet">
</head>
<body>
<?php include THEMES_PATH . 'public/header2.phtml';?>
<div class="mt2x mb2x align-center main-width head">
  <strong><?php echo L('wedding_header_title');?></strong>
</div>
<div class="banner">
  <img src="/statics/front/images/group-buying/wedding/banner.jpg" alt="婚礼礼服">
  <div class="banner-inner js-banner-inner">
    <dl class="clearfix">
      <dt class="align-center">
        <strong class="db font-lg white normal"><?php echo L('Why_OWNONLY_');?></strong>
        <span>
          <i class="line"></i>
          <i class="fa fa-heart-o"></i>
          <i class="line"></i>
        </span>
      </dt>
      <dd class="img-box">
        <img src="/statics/front/images/group-buying/wedding/monogram.png" alt="西服绣字">
      </dd>
      <dd class="current">
        <i class="fa fa-pencil"></i>
        <div class="pull-right">
          <strong class="normal"><?php echo L('Unique_Personalization');?></strong>
          <p><?php echo L('Unique_Personalization_info');?></p>
        </div>
        <i class="triangle-left"></i>
        <i class="triangle-left triangle-left-1"></i>
      </dd>
      <dd>
        <i class="fa fa-calendar-o"></i>
        <div class="pull-right">
          <strong class="normal"><?php echo L('Weeks_Delivery');?></strong>
          <p><?php echo L('Weeks_Delivery_info');?></p>
        </div>
        <i class="triangle-left"></i>
        <i class="triangle-left triangle-left-1"></i>
      </dd>
      <dd>
        <i class="fa ruler"><img src="/statics/front/images/group-buying/wedding/ruler.png" alt="ruler"></i>
        <div class="pull-right">
          <strong class="normal"><?php echo L('Made_to_Measure');?></strong>
          <p><?php echo L('Made_to_Measure_info');?></p>
        </div>
        <i class="triangle-left"></i>
      </dd>
    </dl>
  </div>
</div>
<div class="bg tabs js-tabs">
  <ul class="clearfix auto align-center">
    <li class="col-md-6"><span class="current"><?php echo L('wedding_tab_1');?></span></li>
    <li class="col-md-6"><span><?php echo L('wedding_tab_2');?></span></li>
  </ul>
</div>
<div class="clearfix panels js-panels">
  <div class="main-width panel product-list js-product-list show">
    <?php
      foreach($productList as $k => $proList):
    ?>
    <div class="heading">
      <strong>
        <?php if($k == 'suit'){
          echo L('FORMAL_DRESSES');
        }else if($k == 'shirt'){
          echo L('_SHIRTS_');
        }else if($k == 'accessories'){
          echo L('_ACCESSORIES_');
        }?>
      </strong>
    </div>
    <ul>
      <?php
        foreach ($proList as $key => $product):
      ?>
      <li>
        <a href="<?php echo $product['url'];?>">
          <?php
            $list=$product['goods_img'] ? $product['goods_img'] : $product['list_img'];
            $str="<img data-original='".$list."' alt='".$product['name']."'>";
              if(!empty($product['ml_img'])) $str.="<img data-original='".$product['ml_img']."' class='hide'>";
                echo $str;
          ?>
        </a>
        <a href="<?php echo $product['url'];?>"<?php if($target == '_blank'):?> target="_blank"<?php endif;?> class="name"><?php echo $product['name'];?></a>
        <p>
          <?php
              if($original_price > 0){
              $three_price = currency($product['original_price']);
              $three_result="<del>$three_price</del>";
                echo $three_result;
              }
               if($product['attribute_type']==2){
                  if($product['product_type']){
                      echo currency($product['sell_price']);
                  }else{
                      echo currency($product['advanced_price']);
                  }
              }elseif($product['attribute_type']==1){
                  echo currency($product['custom_price']);
              }
          ?>
        </p>
      </li>
      <?php endforeach; ?>
    </ul>
    <p class="align-center mt2x">
      <a href="<?php if($k == 'suit'){
        echo url(CATEGORY_URL_2093);
      }else if($k == 'shirt'){
        echo url(CATEGORY_URL_2062);
      }else if($k == 'accessories'){
        echo url(CATEGORY_URL_2067);
      }?>" class="btn btn-middle btn-link"><?php echo L('Explore_More');?></a>
    </p>
    <?php endforeach; ?>
  </div>
  <div class="main-width panel">
    <div class="clearfix">
      <h2 class="col-md-12 align-left normal font-3x overview"><?php echo L('wedding_3_title');?></h2>
      <dl class="col-md-6">
        <dt class="title"><?php echo L('wedding_3_a');?></dt>
        <dd class="text"><?php echo L('wedding_3_a_1');?></dd>
      </dl>
      <dl class="col-md-6">
        <dt class="title"><?php echo L('wedding_3_b');?></dt>
        <dd class="text">根据团购的数量，我们会给予不同等级的折扣，欢迎联系客服咨询。</dd>
      </dl>
    </div>
    <form id="group-order-form" class="clearfix mt5x">
      <div class="col-md-6 calendar-box">
        <strong class="mb1x normal title" style="display:block;"><?php echo L('Wedding_Date');?></strong>
        <input type="hidden" name="date" id="wedding_date" />
        <div id="calendar"></div>
      </div>
      <div class="col-md-6 field-box" style="padding-top:3.7em;">
        <label><em><?php echo L('Your_Name');?>: </em><input type="text" name="name" id="wedding_name" /></label>
        <label><em><?php echo L('Your_Email');?>: </em><input type="text" name="email" id="wedding_email" /></label>
        <label><em><?php echo L('Your_Phone');?>: </em><input type="text" name="phone" id="wedding_phone" /></label>
        <label class="align-left no-border"><input type="checkbox" id="wedding_call_back" style="margin-right:5px;vertical-align:middle;" /><?php echo L('call_back');?></label>
        <div class="select-box">
          <em><?php echo L('Wedding_Party_Size');?>: </em>
          <div class="select-widget">
            <i></i>
            <span>2</span>
            <select name="count" id="wedding_formalCount" autocomplete="off">
              <option selected="selected">2</option>
              <option>3</option>
              <option>4</option>
              <option>5</option>
              <option>6</option>
              <option>7</option>
              <option>8</option>
              <option>9</option>
              <option>10</option>
              <option>11</option>
              <option>12</option>
              <option>13</option>
              <option>14</option>
              <option>15</option>
              <option>16</option>
              <option>17</option>
              <option>18</option>
              <option>19</option>
              <option>20</option>
              <option>20+</option>
            </select>
          </div>
        </div>
        <label class="textarea-label"><em><?php echo L('Message_For_Us_optional');?>: </em><textarea id="wedding_message" class="no-border"></textarea></label>
        <p class="align-left"><button type="button" class="btn btn-middle js-submit" data-type="wedding"><?php echo L('submit');?></button></p>
      </div>
    </form>
    <div class="mt5x faq">
      <h2 class="normal font-3x"><?php echo L('faqs');?></h2>
      <ul>
        <li>
          <strong class="title"><span class="fa fa-plus"> </span><?php echo L('faq1');?></strong>
          <p><?php echo L('answer1');?></p>
        </li>
        <li>
          <strong class="title"><span class="fa fa-plus"> </span><?php echo L('faq2');?></strong>
          <p><?php echo L('answer2');?></p>
        </li>
        <li>
          <strong class="title"><span class="fa fa-plus"> </span><?php echo L('faq3');?></strong>
          <p><?php echo L('answer3');?></p>
        </li>
      </ul>
    </div>
  </div>
</div>
<!--<div class="reviews">
  <strong class="db mb2x align-center font-md black normal"><?php echo L('CUSTOMER_TESTIMONIALS');?></strong>
  <div class="pt1x pb1x mb2x" style="background-color:#f4f4f4;">
    <div class="clearfix main-width">
      <div class="col-md-6">
        <img src="/statics/front/images/group-buying/wedding/1.jpg" alt="wedding 1" />
      </div>
      <div class="col-md-6" style="padding-top:10%;">
        <p class="mb1x">"I was incredibly impressed with the quality of the fabric and craftsmanship. While I'm sure this suit is great for business occasions, I wore it for my wedding and it was perfect. The only thing that topped the actual suit was Ownonly's customer service, who responded to my emails quickly and kindly. It always felt like they were acting in my best interests."</p>
        <p class="align-right">Trevor Bekolay</p>
        <p class="align-right">Waterloo, ON</p>
      </div>
    </div>
  </div>
  <div class="clearfix main-width">
    <div class="col-md-6">
      <p class="mb1x">This was not my first time using the site; in fact I had order two items from them prior to pursuing a group order. I went with them for my wedding suits because all of my previous suits fit like a dream. I am a big man with an athletic background, and finding a suit has always been a big pain for me because I have broad shoulders, but my hips are not as wide as my shoulders would indicate. I was always buying suit separates, and that's an absolute nightmare. I knew that if OwnOnly could outfit me with a perfect suit they could certainly handle my wedding party; which included many former athletes like myself.</p>
      <p class="mb1x">Sure enough, I was right.</p>
      <p class="mb1x">Doing a group order with OwnOnly for my recent wedding was one of the best decisions I could have made for my wedding.  All the typical suit rental places cost a fortune and the fit is never exact. They are a big factory process and they just want the suit to "Fit," they don't care if it "Fits Right."  OwnOnly was extremely helpful in getting all 13 of us suited up and looking great for the wedding. Angie was always quick to respond to any of my questions, and was also very helpful for all my groomsmen.</p>
      <p class="mb1x">One of my favorite things about the OwnOnly service was the spot checking they did for all of us. After sending our measurements, if anything seemed wrong Angie would email the guys and ask them to double check or even send pictures to ensure they got the measurement right. This was something I really appreciated because this eliminated the most stressful part of asking 13 grown men to measure themselves...and get it right!</p>
      <p class="mb1x">Once we all got the suits the guys were absolutely thrilled. Most of my groomsmen had never owned a custom suit, and seeing their name on the inside of the coat as well as the monogram on the shirts was a real treat for them.  Every last one of my guys looked great in their suits. No one had baggy shirts or coats that were too big; we really looked sharp.  I would definitely advise people to use OwnOnly for any suit in the future. I know I will be ordering from them again!</p>
      <p class="align-right">Michael Hoag</p>
      <p class="align-right">Orlando, Florida</p>
      <img src="/statics/front/images/group-buying/wedding/3.jpg" alt="wedding 3" class="mt2x" />
    </div>
    <div class="col-md-6">
      <img src="/statics/front/images/group-buying/wedding/2.jpg" alt="wedding 2" />
      <img src="/statics/front/images/group-buying/wedding/4.jpg" alt="wedding 4" />
    </div>
  </div>
  <div class="pt1x pb1x mb2x" style="background-color:#f4f4f4;">
    <div class="clearfix main-width">
      <div class="col-md-6">
        <img src="/statics/front/images/group-buying/wedding/5.jpg" alt="wedding 5" />
      </div>
      <div class="col-md-6" style="padding-top:5%;">
        <p class="mb1x">With my future husband's unusual build, it was an extreme challenge to find a quality suit that fit him well without extreme alterations. I decided to try ordering online from OWNONLY and provided his measurements as instructed in the video. The suit arrived within a few short weeks and exceeded our expectations! The material is fine quality, the stiching and details were perfect. The only issue was the pants were cut thin as the tailor didn't see our request for straight leg, vs slim cut. We contacted customer service and they rushed him a new pair of pants, with expedited processing even through the holidays when they are usually closed, and expedited shipping to make sure we would have them before the wedding. The new pants arrived with a few days to spare and fit perfectly. The suit far exceeded our expectations and my husband looked amazing for our wedding. Angie in customer service was excellent and quickly resolved our questions. I will definately order again!</p>
        <p class="align-right">Chris Edie</p>
      </div>
    </div>
  </div>
</div>!-->
<div class="pt3x pb4x bg-silver reviews js-reviews">
  <div class="title align-center mb2x">客户评论</div>

  <!--客户评论-->
  <div class="main-width rel pl3x pr3x">
    <div class="ovh rel review-switch js-review-switch" data-jcarousel="true" data-jcarouselswipe="true" style="touch-action: pan-y;">
      <ul style="left: 0px; top: 0px;">
      <li class="col-sm-3 col-xs-6">
      <div class="thumb-img js-show-img">

      <img src="/statics/front/images/group-buying/wedding/adasdaf2w1231.jpg" alt="tunebin" class="db" draggable="false">


		</div>

      <p class="ovh pl1x pr1x bg-black white name">陈先生</p>
      <div class="pt1x pr1x pl1x pb1x bg-white">
      <p class="content">
      婚礼是人生的一个重要的日子，一套精致合身的西装是不可或缺的，由于我是一个偏瘦的人，平时买衣服都不能找到合适的衣服，不是袖子短了就是太宽松了，正当我在迷茫的选择中，让我找到了OWNNLY男装定制，专业的服务理念，贴身的剪裁风格再加上优惠的价格，一切的一切都像是为我量身打造的。感谢🙏OWNONLY男装定制给我一个完美的婚礼！！！
      </p>

      <button class="width-full mt1x btn js-view-more">查看更多</button>
      </div>
      </li>
      <li class="col-sm-3 col-xs-6">
      <div class="thumb-img js-show-img">

      <img src="/statics/front/images/group-buying/wedding/55da8c8de8317.jpg" alt="Emma" class="db" draggable="false">


      </div>
      <p class="ovh pl1x pr1x bg-black white name">Emma</p>
      <div class="pt1x pr1x pl1x pb1x bg-white">
      <p class="content">第一次来ownonly门店，在教工路上，还蛮好找的！总共2层，一楼的是前台，二楼的是门店+展厅，地方还蛮大的！装修风格挺喜欢的😊，店员服务很周到，会咨询自己喜欢的的风格，根据风格推荐合适的西装、领带、领结的款式等，店里有各种面料可选，会给你量身，每一个过程都很仔细～给我的感觉不错😋不错的一家男装定制，推荐哦😊</p>
      <button class="width-full mt1x btn js-view-more">查看更多</button>
      </div>
      </li>
      <li class="col-sm-3 col-xs-6">
     <div class="thumb-img js-show-img">

      <img src="/statics/front/images/group-buying/wedding/55da8cc93c3d4.jpg" alt="David NI" class="db" draggable="false">


		</div>

      <p class="ovh pl1x pr1x bg-black white name">David NI</p>
      <div class="pt1x pr1x pl1x pb1x bg-white">
      <p class="content">
      一套精致合身的西装是不可或缺的，由于我是一个偏瘦的人，平时买衣服都不能找到合适的衣服，不是袖子短了就是太宽松了，正当我在迷茫的选择中，让我找到了OWNNLY男装定制，专业的服务理念，贴身的剪裁风格再加上优惠的价格，一切的一切都像是为我量身打造的。感谢🙏OWNONLY男装定制给我一个完美的婚礼！！！
      </p>
      <button class="width-full mt1x btn js-view-more">查看更多</button>
      </div>
      </li>
      <li class="col-sm-3 col-xs-6">
      <div class="thumb-img js-show-img">

      <img src="/statics/front/images/group-buying/wedding/55da8ef867368.jpg" alt="tunebin" class="db" draggable="false">


		</div>
      <p class="ovh pl1x pr1x bg-black white name">Daniel</p>
      <div class="pt1x pr1x pl1x pb1x bg-white">
      <p class="content">
      我家先生白天上班，抽不出时间去门店。所以约了师傅上门量体的。师傅量的很仔细，服务态度也很好，经验老道。我们定做了一套，衬衫+休闲裤，选的都是高档的进口面料，刚好碰上搞活动，优惠下来一套也才一千多。。面料可选择有很多，国产、进的口都有，款式也可自行选择，衬衫还提供免费刺绣。做出来效果蛮好的，后来去门店拿的衣服，门店装修也挺好的，环境很舒服。比较推荐的一家定制店。
      </p>
      <button class="width-full mt1x btn js-view-more">查看更多</button>
      </div>
      </li>
     <!-- <li class="col-sm-3 col-xs-6">
      <div class="thumb-img js-show-img">
      <a href="http://www.ownonly.com/data/weed/201508/144038669551.jpg" rel="customer3">
      <img src="./Tailored Wedding Suits for Men _ OWNONLY_files/55da8ef867368.jpg" alt="Daniel Hatcher" class="db" draggable="false">
      </a>
      <a href="http://www.ownonly.com/data/weed/201508/144038671225.jpg" rel="customer3"></a>
      <a href="http://www.ownonly.com/data/weed/201508/144038672681.jpg" rel="customer3"></a>
      <a href="http://www.ownonly.com/data/weed/201508/144038674966.jpg" rel="customer3"></a>
      <a href="http://www.ownonly.com/data/weed/201508/14403867609.jpg" rel="customer3"></a>
      <a href="http://www.ownonly.com/data/weed/201508/144038677146.jpg" rel="customer3"></a>
      <a href="http://www.ownonly.com/data/weed/201508/144038679949.jpg" rel="customer3"></a>
      </div>
      <p class="ovh pl1x pr1x bg-black white name">Daniel Hatcher</p>
      <div class="pt1x pr1x pl1x pb1x bg-white">
      <p class="content">
      我家先生白天上班，抽不出时间去门店。所以约了师傅上门量体的。师傅量的很仔细，服务态度也很好，经验老道。我们定做了一套，衬衫+休闲裤，选的都是高档的进口面料，刚好碰上搞活动，优惠下来一套也才一千多。。面料可选择有很多，国产、进的口都有，款式也可自行选择，衬衫还提供免费刺绣。做出来效果蛮好的，后来去门店拿的衣服，门店装修也挺好的，环境很舒服。比较推荐的一家定制店。
      </p>
      <button class="width-full mt1x btn js-view-more">查看更多</button>
      </div>
      </li>-->
      <li class="col-sm-3 col-xs-6">
          <div class="thumb-img js-show-img">

      <img src="/statics/front/images/group-buying/wedding/12345678.jpg" alt="tunebin" class="db" draggable="false">


		</div>
      <p class="ovh pl1x pr1x bg-black white name">沁雅女士</p>
      <div class="pt1x pr1x pl1x pb1x bg-white">
      <p class="content">

		                    很上档次的一家店，特别有格调，店员对顾客很热情，都是笑眯眯的，看着很和蔼，尤其是店里面的美女姐姐超级热情，一直忙不停的为客人提供服务。经过与店员的交流以后，他家的衣服都是定制的，试了一下风衣，果断入手，打算换季后的第一件秋装，而且现在是特价只需980，另外休闲裤也可以定制的才599元。价格十分优惠，总之物美价廉，以后首选这家店。

      </p>
      <button class="width-full mt1x btn js-view-more">查看更多</button>
      </div>
      </li>
      <li class="col-sm-3 col-xs-6">
            <div class="thumb-img js-show-img">

      <img src="/statics/front/images/group-buying/wedding/123123.jpg" alt="tunebin" class="db" draggable="false">


		</div>
      <p class="ovh pl1x pr1x bg-black white name">黑海的鱼</p>
      <div class="pt1x pr1x pl1x pb1x bg-white">
      <p class="content">
      我和我妻子今年4月18日结婚了。在通常的“人”的方式，我等到最后一分钟才去处理我的伴郎的西装和自己。我们决定用快递去，在去购物中心的商店后，我们相当满意，虽然我们还得在他们到达的时候定做它们（有些东西必须在网上订购，因为它们不在我们需要的尺寸里）。我们走开了，花了6000多买了三套全套西装，很高兴能把这个过程做完。几天后，我们接到通知说，我们需要的两件东西不再有我们需要的尺寸了。我们拿回了我们所拥有的，回到了画板上。

我的妻子此时变得非常焦虑，坦率地说，我也是。我们现在从我们的婚礼只有几周的距离需要3西装弹指一挥间。我开始搜寻在线选择网络时发现ownonly.com。我立刻对网上做一切事情的前景感到兴奋，但我的妻子有点怀疑。我们答应在婚礼举行前4天，西装就要到了，这正是我们所需要的。因为忙碌的生活方式，我们没有其他选择，所以我们去追求它。

浆纱过程在他们的网站上得到了完美的解释。它包括从你自己家的舒适度中获取大约15个测量值，并将它们输入到你的在线配置文件中。一旦做到这一点，你有吨不同的材料，颜色，拼接，口袋，线程，并选择合适的选择。从头到脚的整套西装是可以定制的，正是你想要的。我们用一条深灰色的意大利羊毛套装配茄子衬里，每个衬里都有定制的刺绣，包括购买。

当西装到达时，比预期提前了一天，我们立刻激动起来。这3件衣服完全合身，简直就是为我们做的。这种面料质量非常好，缝起来既优雅又高雅，我们对最后的产品也不满意。我还想提一下，我们支付了所有三套从ownonly少，完全定制和裁剪，比我们对我们表示仍要抵达购件定制。

正如你可以看到的照片，ownonly西服是一流的。我们的婚礼是华丽的，所有的细节，走到了一起，至少其中的ownonly套装，很完美。我强烈推荐这个网站和他们的产品给任何找西装的人，不管是婚礼或其他正式活动，还是每天上班穿的衣服。当我下次还要定制的话，我将选择ownonly。
      </p>
      <button class="width-full mt1x btn js-view-more">查看更多</button>
      </div>
      </li>
     <li class="col-sm-3 col-xs-6"></li>
      <li class="col-sm-3 col-xs-6"></li>
      </ul>
    </div>
    <div class="carousel-control-btn">
      <a href="javascript:" class="fa fa-3x fa-chevron-left js-carousel-control-prev disabled" data-jcarouselcontrol="true"></a>
      <a href="javascript:" class="fa fa-3x fa-chevron-right js-carousel-control-next" data-jcarouselcontrol="true"></a>
    </div>
  </div>
  <!--
  <div id="overlay" style="opacity: 0.6; display: block;"></div>
  <div id="lightbox" style="display: block; top: 11388.2px; left: 0px;">
  <div id="outerImageContainer" class="col-lg-4 col-md-6 col-sm-8 col-sm-push-2 col-lg-push-4 col-md-push-3">
  <i class="boxClose" style="display: block;"></i>
  <div id="imageContainer">
  <iframe id="lightboxIframe"></iframe>
  <img id="lightboxImage" src="http://www.ownonly.com/data/weed/201508/144038617356.jpg" style="display: inline;">
  <div id="hoverNav" style="display: block;">
  <a href="javascript://" title="previous image" id="prevLink" style="display: block;"></a>
  <a href="javascript://" id="nextLink" title="next image" style="display: block;"></a>
  </div>
  <div id="loading" style="display: none;">
  <a href="javascript://" id="loadingLink">
  <img src="/statics/front/images/loading.gif">
  </a>
  </div>
  </div>
  </div>
  <div id="imageDataContainer" class="clearfix">
  <div id="imageData" style="display: block;">
  <div id="imageDetails">
  <span id="caption"></span>
  <span id="numberDisplay">
  <a title="previous image" href="#" id="prevLinkText">
  « Previous
  </a>
  Image 1 of 2
  <a title="next image" href="#" id="nextLinkText">
  Next »
  </a>
  </span>
  </div>
  <div id="bottomNav">
  <a href="javascript://" class="bottomNavClose" title="close image gallery">
  <img src="/statics/front/images/close.png">
  </a>
  </div>
  </div>
  </div>
  </div>-->
  <div class="modal fade js-modal">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal"><span>×</span></button>
        </div>
        <div class="modal-body"></div>
      </div>
    </div>
  </div>
</div>
<script src="<?php echo TPL_PATH;?>group-buying/wedding/WdatePicker/pkg-wedding-plugins.js"></script>
<script src="/statics/front/js/plugins/jquery.lazyload.js"></script>
<script src="<?php echo TPL_PATH;?>group-buying/wedding/WdatePicker/WdatePicker.js"></script>

<script>
$(function() {
  var $productList = $('.js-product-list'),
      $groupOrderForm = $('#group-order-form'),
      $contactForm = $('#contact-form'),
      submitForm = function (thisForm,type) {
        var name = '',
            email = '',
            phone = '',
            call_back = 0,
            formalCount = 1,
            wedding_date = '',
            message = '';

        if (type == 'contact') {
          name    = $('#contact_name').val();
          email   = $('#contact_email').val();
          message = $('#contact_message').val();
        } else if (type == 'wedding') {
          name      = $('#wedding_name').val();
          email     = $('#wedding_email').val();
          phone     = $('#wedding_phone').val();
          call_back = $('#wedding_call_back').is(':checked') ? 1 : 0;
          wedding_date = $('#wedding_date').val();
          formalCount  = $('#wedding_formalCount').val();
          message      = $('#wedding_message').val();
        } else {
          return false;
        }

        $.ajax({
          type: 'POST',
          url: "/groupBuying/formpost",
          data: {
            'type': type,
            'name': name,
            'email': email,
            'phone': phone,
            'call_back': call_back,
            'wedding_date': wedding_date,
            'formalCount': formalCount,
            'message': message
          },
          cache:false,
          success: function(res){
            var _tips = "<?php echo L('msg_submit_is_successful')?>";
            if (res == 1) {
              thisForm[0].reset();
            } else{
              _tips = "<?php echo L('msg_submit_is_failure')?>";
            }
            $("p.tips")[0] && $("p.tips").remove();
            thisForm.find('.js-submit').parent().append("<p class='align-center tips'>" + _tips + "</p>");
          },
          error: function () {
            var _tips = "<?php echo L('msg_submit_is_failure')?>";
            $("p.tips")[0] && $("p.tips").remove();
            thisForm.find('.js-submit').parent().append("<p class='align-center tips'>" + _tips + "</p>");
          }
        });
      };

  $productList.find('img').lazyload({
    skip_invisible: false
  });

  if (!unifyMobileDesktop.isSupportTouch()) {
    //面料图显隐
    $productList.on('mouseover', 'li', function() {
      var $img = $(this).find('img');
      $img.removeAttr('style');
      if ($img.length > 1) {
        $img.eq(0).addClass('hide').next().removeClass('hide');
      }
    }).on('mouseout', 'li', function() {
      var $img = $(this).find('img');
      if ($img.length > 1) {
        $img.eq(0).removeClass('hide').next().addClass('hide');
      }
    });

    $('.js-banner-inner').on('mouseover', 'dd', function() {
      if ($(this).index() !== 1) {
        $(this).addClass('current').siblings().removeClass('current');
      }
    });
  }

  $('.js-tabs').on('click', 'li', function(event) {
    var $self = $(this),
        winWidth = $(window).width();
    $self.find("span").addClass("current").end().siblings().find("span").removeClass("current");
    $('.js-panels').children('div').eq($self.index()).addClass('show').siblings().removeClass('show');

    if ($self.index() === 1) {//日历控件样式控制
      var $calendar = $('#calendar'),
          $iframe = $calendar.children('iframe'),
          $WdateDiv = $($iframe[0].contentWindow.document).find('.WdateDiv'),
          newWidth = $calendar.width(),
          newHeight = 0;
      if (winWidth > 768) {
        newHeight = $groupOrderForm.height() * .8;
      } else if (winWidth <= 768 && winWidth > 568) {
        newHeight = $groupOrderForm.height() * .56;
      } else {
        newHeight = 235;
      }
      $iframe.css({'width': newWidth, 'height': newHeight});
      $WdateDiv.css({
        'width': newWidth - parseInt($WdateDiv.css('border-left-width')) - parseInt($WdateDiv.css('padding-left')) - parseInt($WdateDiv.css('padding-left')) - parseInt($WdateDiv.css('border-right-width')),
        'height': $iframe.outerHeight() - parseInt($WdateDiv.css('border-top-width')) - parseInt($WdateDiv.css('padding-top')) - parseInt($WdateDiv.css('padding-bottom')) - parseInt($WdateDiv.css('border-bottom-width'))
      }).children().eq(1).css({
        'width': $WdateDiv.width(),
        'height': $WdateDiv.height() - $WdateDiv.prev().outerHeight(true) - $WdateDiv.next().find('tr').eq(0).outerHeight()
      });
    }
  });

  WdatePicker({
    lang:'en',
    skin:'twoer',
    dateFmt: 'MM/dd/yyyy',
    eCont: 'calendar',
    onpicked: function(dp) {
      $dp.$('wedding_date').value = dp.cal.getDateStr();
    }
  });

  $('select').on('change', function() {
    $(this).prev().text($(this).children('option').filter(':selected').text());
  });

  $('.js-submit').on('click', function() {
    var $self = $(this);
    var thisForm = $self.parents('form');
    if ($self.parents('form').is($groupOrderForm) && $groupOrderForm.valid()) {
      submitForm(thisForm,$groupOrderForm.find('button').data('type'));
    } else if ($self.parents('form').is($contactForm) && $contactForm.valid()) {
      submitForm(thisForm,$contactForm.find('button').data('type'));
    }
  });

  $groupOrderForm.validate({
    errorElement: 'p',
    submitHandler: function(form) {
      form.submit();
    },
    errorPlacement: function(error, element) {
      element.after(error);
    },
    rules: {
      name: 'required',
      email: {
        required: true,
        email: true
      },
      phone: 'required',
      date: 'required'
    },
    messages: {
      name: "<?php echo L('refer_yname_validate');?>",
      email: {
        required: "<?php echo L('refer_yemail_validate');?>",
        email: "<?php echo L('refer_yemail_validate');?>"
      },
      phone: "<?php echo L('pleaseinputphone');?>",
      date: "<?php echo L('Choose_date');?>"
    }
  });

  $contactForm.validate({
    errorElement: 'p',
    submitHandler: function(form) {
      form.submit();
    },
    errorPlacement: function(error, element) {
      element.after(error);
    },
    rules: {
      name: 'required',
      email: {
        required: true,
        email: true
      },
      phone: 'required',
      message: 'required'
    },
    messages: {
      name: "<?php echo L('refer_yname_validate');?>",
      email: {
        required: "<?php echo L('refer_yemail_validate');?>",
        email: "<?php echo L('refer_yemail_validate');?>"
      },
      phone: "<?php echo L('pleaseinputphone');?>",
      message: "<?php echo L('Please_input_your_message');?>"
    }
  });

  /*FAQ*/
  $('.faq').on('click', 'strong', function () {
    $(this).toggleClass('open').find('.fa').toggleClass('fa-minus').end().siblings('p').stop().toggle('slideDown');
  });
});
(function() {//滚动时动态加载评论
    var $reviews = $('.js-reviews'),
        $reviewSwitching = $reviews.find('.js-review-switch'),
        $itemWrap = $reviewSwitching.find('> ul'),
        countEveryPage = 4,
        page = 1,
        dataMore = true,
        getReviews = function (page, success) {
          if (!dataMore) {
            return false;
          }
        };

    getReviews(page, function () {
      $('.js-show-img').find('> a').lightbox({ // 点击小图查看大图
        loopImages: true,
        fileLoadingImage: '/statics/front/images/loading.gif',
        fileBottomNavCloseImage: '/statics/front/images/close.png'
      });

      $('.js-view-more').on('click', function () { // 查看更多评论
        var $this = $(this);
        $('.js-modal').find('.modal-body').html('<p class="mb1x bk">' + $this.prev().html() + '</p><p class="align-right bk">' + $this.closest('li').find('.name').text() + '</p>').end().modal('show');
      });
    });

    var jcarousel = $reviewSwitching
      .jcarousel()
      .on('jcarousel:scrollend', function(event, carousel) {
        getReviews(++page);

        $('.js-show-img').find('> a').lightbox({ // 点击小图查看大图
          loopImages: true,
          fileLoadingImage: '/statics/front/images/loading.gif',
          fileBottomNavCloseImage: '/statics/front/images/close.png'
        });

        $('.js-view-more').on('click', function () { // 查看更多评论
          var $this = $(this);
          $('.js-modal').find('.modal-body').html('<p class="mb1x bk">' + $this.prev().html() + '</p><p class="align-right bk">' + $this.closest('li').find('.name').text() + '</p>').end().modal('show');
        });
      })
      .jcarouselSwipe();

    $('.js-carousel-control-prev')
      .on('jcarouselcontrol:active', function() {
        $(this).removeClass('disabled');
      })
      .on('jcarouselcontrol:inactive', function() {
        $(this).addClass('disabled');
      })
      .jcarouselControl({
        target: '-=1'
      });

    $('.js-carousel-control-next')
      .on('jcarouselcontrol:active', function() {
        $(this).removeClass('disabled');
      })
      .on('jcarouselcontrol:inactive', function() {
        $(this).addClass('disabled');
      })
      .jcarouselControl({
        target: '+=1'
      });
  }());
</script>
<?php include THEMES_PATH.'public/footer2.phtml';?>

<?php include THEMES_PATH.'public/after_body.phtml';?>